const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
  name: String,
  price: Number,
  turnover: Number,
  comments: Number,
  partyaksa: Number,
  preferential: Number,
  pic: String,
  kinds: String,
  superior: String,
  type: Number,
  parentId: String
});

schema.plugin(mongoosePaginate);

module.exports = mongoose.model('Product', schema);
